import java.util.*;

public class Launcher{
	public static void displayTextNotes(NoteStore i){
		ArrayList<TextNote> temp = i.getAllTextNotes();
		for(int index = 0; index < temp.size(); index++){
			System.out.println(temp.get(index).text);
		}
	}
	public static void displayTextAndImageNotes(NoteStore i){
		ArrayList<TextAndImageNote> temp = i.getAllTextAndImageNotes();
		for(int index = 0; index < temp.size(); index++){
			System.out.println(temp.get(index).text + ", " + temp.get(index).imageUrl);
		}
	}
	public static void main(String[] args){
		NoteStore instance = new NoteStore();
		TextNote tn1 = new TextNote();
		TextNote tn2 = new TextNote();
		TextAndImageNote tni1 = new TextAndImageNote();
		TextAndImageNote tni2 = new TextAndImageNote();
		tn1.text = "Java is a set of computer software and specifications";
		tn2.text = "Few books to read - Ikigai, How to win friends";
		tni1.text = "The shopping list on my fridge";
		tni2.text = "The size label of Jack's shirt";
		tni1.imageUrl = "//foo/bar1/bar2/imgset1.jpg";
		tni2.imageUrl = "//foo/bar1/bar2/imgset2.jpg";
		instance.storeNote(tn1);
		instance.storeNote(tn2);
		instance.storeNote(tni1);
		instance.storeNote(tni2);
		displayTextNotes(instance);
		displayTextAndImageNotes(instance);
	}
}
